{% extends '../../../layout/admin-base.html' %}
<script src="{{ assets_path("js/base.js")}}"></script>
{% block page %}
<h3 class="page-title">
    寝室房间信息 <small>新增</small>
</h3>
<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="index.html">基本信息管理</a> 
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="{{url('admin/user/student')}}">寝室房间信息管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li><span>新增</span></li>
</ul>
{% end%}
{% block content %}

<div class="row-fluid">
    <div class="span12">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-plus"></i>新增寝室房间</div>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <form action="{{url('admin/user/room/new/')}}" method="post" class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label">寝室房间名<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" id="roomName" name="roomName" class="span6 m-wrap" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">所属宿舍楼</label>
                        <div class="controls">
                            <select class="span6 m-wrap" id="dormId" name="dormId" data-placeholder="Choose a Category" tabindex="1">
                            {% for i in dorm_list %}
                                <option value="{{i['Fid']}}">{{i['Fdorm_name']}}</option>
                            {% end %}
                            </select>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">备注<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" id="remark" name="remark"  class="span6 m-wrap" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn blue">保存</button>
                        <button type="button" class="btn">保存并新增下一条</button>
                    </div>
                </form>
                <!-- END FORM--> 
            </div>
        </div>
    </div>
</div>
{% end%}